import unittest
from selenium import webdriver
from options import options
from asms import Asms

url = r'http://172.16.22.105:8080/bsams/front/login.do'  #设为全局变量
class UpDown(unittest.TestCase):
    def setUp(self) -> None:      #准备工作
        self.dr = webdriver.Chrome(options=options)
        self.dr.get(url)
        self.dr.maximize_window()

    def tearDown(self) -> None:
        self.dr.quit()
class UpDown2(unittest.TestCase):
    @classmethod
    def setUpClass(cls) -> None:
        cls.dr=webdriver.Chrome(options=options)
        cls.dr.get(url)
        cls.dr.maximize_window()
        asms=Asms(cls.dr)
        asms.login(1,'test11','123456','shtd')
    def tearDownClass(cls) -> None:
        cls.dr.quit()